#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include "ui_loginwidget.h"

class LoginWidget : public QWidget
{
    Q_OBJECT
public:
    LoginWidget(QWidget *parent = 0);
    ~LoginWidget();
    void clearState();
signals:
    void login(QString username,QString password);
    void back();
private slots:
    void loginClicked();
public slots:
    void displayLoginError();
    void displayConnectionError();
private:
    Ui::LoginWidget *ui;
};

#endif // LOGINWIDGET_H
